Exemple #1
0
        //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);
        }
Exemple #2
0
 public GetTaskByIdModel(Task tasks)
 {
     Tasks = tasks;
 }