public async Task <IHttpActionResult> UpdateLastWorkingDay([FromBody] SocietyStaffViewModel viewmodel) { var model = Mapper.Map <SocietyStaff>(viewmodel); await _societyStaffService.UpdateLastWorkingDay(model); return(Ok()); }
public async Task <IHttpActionResult> Create([FromBody] SocietyStaffViewModel viewmodel) { var model = Mapper.Map <SocietyStaff>(viewmodel); var result = await _societyStaffService.Create(model); return(Ok(Mapper.Map <SocietyStaffViewModel>(result))); }