public ActionResult <Agenda> EditAgenda([FromBody] Agenda update)
        {
            var status = _AgendaService.EditAgenda(update);

            if (status)
            {
                return(BadRequest());
            }
            return(Ok(status));
        }
Esempio n. 2
0
 public JsonResult Edit(AgendaModel model)
 {
     AgendaService.EditAgenda(Mapper.Map <Agendum>(model));
     Response.StatusCode = (int)HttpStatusCode.OK;
     return(Json("ok", JsonRequestBehavior.AllowGet));
 }