fssa-batch3 / fssa-batch3/sec_b_vignesh.ramachandran__corejava_project_2
Delete Dish
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Feature 3: Delete Dish
#### Admin story
Admin can delete Dish.
#### Pre-requisites:
- Implement Category_Dish Service(delete)- int dish_id
- Implement Category_Dish DAO(delete)- int dish_id
#### Validation
- [ ] Form Validation
- id <=0
- [ ] Business Validation
- Check dish_id is in the table or not
#### Messages
- Invalid dish_id
- dish_id not found (Business Validation)
#### Flow:
```mermaid
graph TD;
A["Dish Service: Dish deletion"] --> B["Form validation"]
B -- Valid --> C["Business Validation"]
B -- Invalid--> C1["Validation Exception: Invalid input"]
C --> D["Category_Dish Service: Delete Dish"]
D --> D1["Check whether the dish_id is in the Category_Dish table or not"]
D1 -- Yes --> E["Category_Dish DAO: Delete Dish"]
D1 -- No --> E1["Validation Exception: dish_id not found"]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.