예제 #1
0
 public IActionResult Put([FromBody] Tasked task)
 {
     if (_taskService.Modify(task) > 0)
     {
         return(Ok(new { status = true, Data = task, Message = "Update Success!" }));
     }
     return(Ok(new { status = false, Data = (string)null, Message = "Uupdate Error!" }));
 }
예제 #2
0
 public IActionResult Post([FromBody] Tasked task)
 {
     if (_taskService.Add(task) > 0)
     {
         return(Ok(new { status = true, Data = task, Message = "Save Success!" }));
     }
     return(Ok(new { status = false, Data = (string)null, Message = "Error Success!" }));
 }