/// <summary> /// Updates the payor. /// </summary> /// <param name="payorDetails">The payor details.</param> /// <returns></returns> public Response <PayorsModel> UpdatePayor(PayorsModel payorDetails) { string apiUrl = baseRoute + "UpdatePayor"; var response = communicationManager.Put <PayorsModel, Response <PayorsModel> >(payorDetails, apiUrl); return(response); }
public Response <PayorsModel> UpdatePayor(PayorsModel payorDetails) { var payorsParameters = BuildPayorSpParams(payorDetails); var payorsRepository = _unitOfWork.GetRepository <PayorsModel>(SchemaName.Reference); return(payorsRepository.ExecuteNQStoredProc("usp_UpdatePayorDetails", payorsParameters)); }
private List <SqlParameter> BuildPayorSpParams(PayorsModel payorDetails) { var spParameters = new List <SqlParameter>(); if (payorDetails.PayorID > 0) { spParameters.Add(new SqlParameter("PayorID", payorDetails.PayorID)); } spParameters.AddRange(new List <SqlParameter> { new SqlParameter("PayorName", (object)payorDetails.PayorName ?? DBNull.Value), new SqlParameter("PayorCode", (object)payorDetails.PayorCode ?? DBNull.Value), new SqlParameter("PayorTypeID", (object)payorDetails.PayorTypeID ?? DBNull.Value), new SqlParameter("EffectiveDate", (object)payorDetails.EffectiveDate ?? DBNull.Value), new SqlParameter("ExpirationDate", (object)payorDetails.ExpirationDate ?? DBNull.Value), new SqlParameter("ModifiedOn", (object)payorDetails.ModifiedOn ?? DBNull.Value) }); return(spParameters); }
/// <summary> /// Updates the payor. /// </summary> /// <param name="payorDetails">The payor details.</param> /// <returns></returns> public Response <PayorsModel> UpdatePayor(PayorsModel payorDetails) { const string apiUrl = BaseRoute + "UpdatePayor"; return(communicationManager.Put <PayorsModel, Response <PayorsModel> >(payorDetails, apiUrl)); }
public IHttpActionResult UpdatePayor(PayorsModel payorDetails) { return(new HttpResult <Response <PayorsModel> >(_payorsRuleEngine.UpdatePayor(payorDetails), Request)); }
public Response <PayorsModel> UpdatePayor(PayorsModel payorDetails) { return(_payorRepository.UpdatePayor(payorDetails)); }
public Response <PayorsModel> AddPayor(PayorsModel payorDetails) { return(_payorRepository.AddPayor(payorDetails)); }
public IHttpActionResult UpdatePayor(PayorsModel payorDetails) { return(new HttpResult <Response <PayorsModel> >(_payorsDataProvider.UpdatePayor(payorDetails), Request)); }
/// <summary> /// Updates the payor. /// </summary> /// <param name="payorDetails">The payor details.</param> /// <returns></returns> public Response <PayorsModel> UpdatePayor(PayorsModel payorDetails) { return(_payorsService.UpdatePayor(payorDetails)); }
/// <summary> /// Adds the payor. /// </summary> /// <param name="payorDetails">The payor details.</param> /// <returns></returns> public Response <PayorsModel> AddPayor(PayorsModel payorDetails) { return(_payorsService.AddPayor(payorDetails)); }