public async Task <IHttpActionResult> Update([FromBody] SocietyAssetViewModel viewmodel) { var model = Mapper.Map <SocietyAsset>(viewmodel); await _societyAssetService.Update(model); return(Ok()); }
public async Task <IHttpActionResult> Create([FromBody] SocietyAssetViewModel viewmodel) { var model = Mapper.Map <SocietyAsset>(viewmodel); var result = await _societyAssetService.Create(model); return(Ok(Mapper.Map <SocietyAssetViewModel>(result))); }