/// <summary> /// Webs the type committee to biz type committee. /// </summary> /// <param name="DataTypeCommittee">The data type committee.</param> /// <returns>BizTypeCommittee.</returns> public static BizTypeCommittee WebTypeCommitteeToBizTypeCommittee(this WebTypeCommittee DataTypeCommittee) { BizTypeCommittee bizTypeCommittee = new BizTypeCommittee { Id = DataTypeCommittee.Id, TypeCommittee = DataTypeCommittee.TypeCommittee, Active = DataTypeCommittee.Active, }; return(bizTypeCommittee); }
/// <summary> /// Bizs the type committee to web type committee. /// </summary> /// <param name="DataTypeCommittee">The data type committee.</param> /// <returns>WebTypeCommittee.</returns> public static WebTypeCommittee BizTypeCommitteeToWebTypeCommittee(this BizTypeCommittee DataTypeCommittee) { WebTypeCommittee webTypeCommittee = new WebTypeCommittee { Id = DataTypeCommittee.Id, TypeCommittee = DataTypeCommittee.TypeCommittee, Active = DataTypeCommittee.Active, }; return(webTypeCommittee); }
public IHttpActionResult Delete(WebTypeCommittee webTypeCommittee) { string response = crudFuction.BizDeleteTypeCommittee(webTypeCommittee.WebTypeCommitteeToBizTypeCommittee()); if (!response.Equals("EXITO")) { return(BadRequest(response)); } else { return(Ok(response)); } }