public async Task <JsonResult> Post(ServiceLocationContactViewModel entity)
 {
     return(Json(await _locationContactService.AddServiceContact(entity)));
 }
Ejemplo n.º 2
0
 public async Task <int> AddServiceContact(ServiceLocationContactViewModel entity)
 {
     return(await _contactRepository.Insert(
                _mapper.Map <ServiceLocationContactViewModel, ServiceLocationContact>(entity)));
 }