public ActionResult UpdatePriority(PriorityUpdateDto priorityUpdateDto)
        {
            var priorityModel = _repository.GetPriorityById(priorityUpdateDto.PriorityID);

            if (priorityModel == null)
            {
                return(NotFound());
            }
            _mapper.Map(priorityUpdateDto, priorityModel);
            _repository.UpdatePriority(priorityModel);
            _repository.SaveChanges();
            return(NoContent());
        }
示例#2
0
 public int Updatepriority(IPriority _priority, int PriorityID, string PriorityName, int status, int tenantID, int UserID, int PriorityFor)
 {
     _priorityList = _priority;
     return(_priorityList.UpdatePriority(PriorityID, PriorityName, status, tenantID, UserID, PriorityFor));
 }