Ejemplo n.º 1
0
        public IHttpActionResult HolidaySave([FromBody] PublicHolidayViewModel model)
        {
            model.CreatedBy = User.Identity.GetUserId <long>();
            long id = _publicHolidayService.PublicHolidayInsert(model.ToModel());

            return(Ok(id.SuccessResponse()));
        }
Ejemplo n.º 2
0
 public IHttpActionResult HolidayUpdate([FromBody] PublicHolidayViewModel model)
 {
     model.UpdatedBy = User.Identity.GetUserId <long>();
     _publicHolidayService.PublicHolidayUpdate(model.ToModel());
     return(Ok("Updated successfully.".SuccessResponse()));
 }