/// <summary> /// Webs the payment status to biz payment status. /// </summary> /// <param name="DataPaymentStatus">The data payment status.</param> /// <returns>BizPaymentStatus.</returns> public static BizPaymentStatus WebPaymentStatusToBizPaymentStatus(this WebPaymentStatus DataPaymentStatus) { BizPaymentStatus bizPaymentStatus = new BizPaymentStatus { Id = DataPaymentStatus.Id, StatusName = DataPaymentStatus.StatusName, Active = DataPaymentStatus.Active, }; return(bizPaymentStatus); }
/// <summary> /// Bizs the payment status to web payment status. /// </summary> /// <param name="DataPaymentStatus">The data payment status.</param> /// <returns>WebPaymentStatus.</returns> public static WebPaymentStatus BizPaymentStatusToWebPaymentStatus(this BizPaymentStatus DataPaymentStatus) { WebPaymentStatus webPaymentStatus = new WebPaymentStatus { Id = DataPaymentStatus.Id, StatusName = DataPaymentStatus.StatusName, Active = DataPaymentStatus.Active, }; return(webPaymentStatus); }
public IHttpActionResult Delete(WebPaymentStatus webPaymentStatus) { string response = crudFuction.BizDeletePaymentStatus(webPaymentStatus.WebPaymentStatusToBizPaymentStatus()); if (!response.Equals("EXITO")) { return(BadRequest(response)); } else { return(Ok(response)); } }