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