Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task <IActionResult> GetAddressById(int addressId) { try { var _serviceEndPoint = new ServicesEndPoint(_unitOfWork, _emailService); Address res = await _serviceEndPoint.GetAddressById(addressId); AddressViewModel results = _Mapper.Map <AddressViewModel>(res); if (results == null) { return(NotFound(results)); } return(Ok(results)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }