public IActionResult Post([FromBody] CalendarModel model) { return(Post(_service.InsertCalendar, AuditNew(model))); }
public CalendarModel UpdateCalendar(CalendarModel model) { _repo.Update(model); return(GetCalendar(model.Id)); }
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)); }