public async Task <IActionResult> Update([FromRoute] Guid id, [FromBody] MeetingResourceModel model) { try { var response = await _service.Update(model); if (!response.IsSuccessful) { return(BadRequest(response)); } return(Ok(response)); } catch { return(StatusCode(500, "Internal Server Error.")); } }
public async Task <IActionResult> Add([FromBody] MeetingResourceModel model) { var response = await _service.Add(model); if (!response.IsSuccessful) { return(BadRequest(response)); } return(Ok(response)); //try //{ //} //catch(Exception x) //{ // return StatusCode(500, "Internal Server Error."); //} }