コード例 #1
0
        public ActionResult <Agenda> EditAgenda([FromBody] Agenda update)
        {
            var status = _AgendaService.EditAgenda(update);

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