/// <summary> /// Webs the type visit to biz type visit. /// </summary> /// <param name="DatTypeVisit">The dat type visit.</param> /// <returns>BizTypeVisit.</returns> public static BizTypeVisit WebTypeVisitToBizTypeVisit(this WebTypeVisit DatTypeVisit) { BizTypeVisit bizTypeVisit = new BizTypeVisit { Id = DatTypeVisit.Id, TypeVisit = DatTypeVisit.TypeVisit, Active = DatTypeVisit.Active, }; return(bizTypeVisit); }
/// <summary> /// Bizs the type visit to web type visit. /// </summary> /// <param name="DatTypeVisit">The dat type visit.</param> /// <returns>WebTypeVisit.</returns> public static WebTypeVisit BizTypeVisitToWebTypeVisit(this BizTypeVisit DatTypeVisit) { WebTypeVisit webTypeVisit = new WebTypeVisit { Id = DatTypeVisit.Id, TypeVisit = DatTypeVisit.TypeVisit, Active = DatTypeVisit.Active, }; return(webTypeVisit); }
public IHttpActionResult Delete(WebTypeVisit webTypeVisit) { string response = crudFuction.BizDeleteTypeVisit(webTypeVisit.WebTypeVisitToBizTypeVisit()); if (!response.Equals("EXITO")) { return(BadRequest(response)); } else { return(Ok(response)); } }