Exemplo n.º 1
0
        public async Task <ActionResult <Work> > AssignTask([FromBody] Work task) //we are expecting http request and inside of request we expect product body and .net core will auto convert jason to object
        {
            await _repository.Create(task);

            return(CreatedAtRoute("GetTask", new { id = task.Id }, task));
        }
Exemplo n.º 2
0
 public bool Create(WorkModel model)
 {
     return(_res.Create(model));
 }