示例#1
0
        public SuccessResponse <TaskAssigneeDto> AddTaskAssignee([FromBody] TaskAssigneeDto assigneeDto, Guid id)
        {
            var model = new TaskAssignee {
                TaskId = id, UserId = Guid.Parse(assigneeDto.UserId)
            };
            var res = _taskService.AddTaskAssignee(model);

            return(new SuccessResponse <TaskAssigneeDto>(_mapper.Map <TaskAssigneeDto>(res)));
        }
 public BaseListResponse <TaskAssignee> Add(List <TaskAssignee> models)
 {
     return(taskService.AddTaskAssignee(models));
 }