예제 #1
0
 public IActionResult Post([FromBody] CalendarModel model)
 {
     return(Post(_service.InsertCalendar, AuditNew(model)));
 }
 public CalendarModel UpdateCalendar(CalendarModel model)
 {
     _repo.Update(model);
     return(GetCalendar(model.Id));
 }
예제 #3
0
 public IActionResult Put(int id, [FromBody] CalendarModel model)
 {
     return(Put(_service.UpdateCalendar, AuditExisting(model)));
 }
        public CalendarModel InsertCalendar(CalendarModel model)
        {
            var inserted = _repo.Insert(model);

            return(GetCalendar(inserted.Id));
        }