//Update Model service, call through the Jquerry.js public void Update(UpdateTaskDto input) { Task update = _taskRepo.FirstOrDefault(i => i.Id == input.Id); update.Name = input.Name; update.Description = input.Description; _taskRepo.UpdateAsync(update); //ObjectMapper.Map<UpdateTaskDto>(update); }
public GetTaskByIdModel(Task tasks) { Tasks = tasks; }