예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
        public IHttpActionResult Delete(WebTypeCommittee webTypeCommittee)
        {
            string response = crudFuction.BizDeleteTypeCommittee(webTypeCommittee.WebTypeCommitteeToBizTypeCommittee());

            if (!response.Equals("EXITO"))
            {
                return(BadRequest(response));
            }
            else
            {
                return(Ok(response));
            }
        }