public ActionResult <Agenda> EditAgenda([FromBody] Agenda update) { var status = _AgendaService.EditAgenda(update); if (status) { return(BadRequest()); } return(Ok(status)); }
public JsonResult Edit(AgendaModel model) { AgendaService.EditAgenda(Mapper.Map <Agendum>(model)); Response.StatusCode = (int)HttpStatusCode.OK; return(Json("ok", JsonRequestBehavior.AllowGet)); }