public async Task <HttpResponseMessage> DeleteEmergencyContact(DeleteEmergencyContact deleteEmergencyContact) { if (deleteEmergencyContact != null && ModelState.IsValid) { httpResponseMessage = new HttpResponseMessage(); var deleteEmergencyContactReponse = await _ICommonService.DeleteEmergencyContact(deleteEmergencyContact); httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK, deleteEmergencyContactReponse); } else { httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK, new { Message = CustomErrorMessages.INVALID_INPUTS, Success = false }); } return(httpResponseMessage); }
public async Task <BaseResponse> DeleteEmergencyContact(DeleteEmergencyContact deleteEmergencyContact) { return(await _ICommonRepository.DeleteEmergencyContact(deleteEmergencyContact)); }