He had take near by 5 hour to complete CRUD API with ADO.NET and SP with SQL server. he complete task but he has 0 coding sense and not added logical validation. for manege table history he create 3 deferente payload and method like create history,update history and delete history. also, for main table CRUD he create 3 different model for Create, update and delete. we can't move forward with him with 3 years of experience and with this sense. i had to fill this in practical task review refactor this keep it short
CreateModel, UpdateModel, DeleteModelDeleteModel typically only needs an Id - no dedicated model needed at allCreateHistory, UpdateHistory, DeleteHistoryLogHistory(entityId, action, payload) handles all 3 casesMERGE/INSERT with an ActionType column// One unified model
public class ProductRequest {
public int? Id { get; set; } // null = create, set = update/delete
public string Name { get; set; }
public decimal Price { get; set; }
public bool IsActive { get; set; }
}
// One history method
void LogHistory(int entityId, string action, string changedData)
// One SP for history
EXEC sp_ManageHistory @EntityId, @Action, @ChangedData
| Area | Rating |
|---|---|
| Task Completion | Pass (barely) |
| Code Quality | Poor |
| Design Thinking | Very Poor |
| Validation / Error Handling | None |
| Scalability Mindset | None |
| Experience Match (3 YOE) | Does not meet expectations |