/// <summary> /// Webs the internal box to biz internal box. /// </summary> /// <param name="DataInternalBox">The data internal box.</param> /// <returns>BizInternalBox.</returns> public static BizInternalBox WebInternalBoxToBizInternalBox(this WebInternalBox DataInternalBox) { BizInternalBox bizInternalBox = new BizInternalBox { Amount = DataInternalBox.Amount, CreationDate = DataInternalBox.CreationDate, }; return(bizInternalBox); }
/// <summary> /// Bizs the internal box to web internal box. /// </summary> /// <param name="DataInternalBox">The data internal box.</param> /// <returns>WebInternalBox.</returns> public static WebInternalBox BizInternalBoxToWebInternalBox(this BizInternalBox DataInternalBox) { WebInternalBox webInternalBox = new WebInternalBox { Amount = DataInternalBox.Amount, CreationDate = DataInternalBox.CreationDate, }; return(webInternalBox); }
public IHttpActionResult Post(WebInternalBox webInternalBox) { string response = crudFuction.BizInsertInternalBox(webInternalBox.WebInternalBoxToBizInternalBox()); if (!response.Equals("EXITO")) { return(BadRequest(response)); } else { return(Ok(response)); } }