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!" })); }
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!" })); }