Esempio n. 1
0
        public virtual ApiLinkStatusResponseModel MapBOToModel(
            BOLinkStatus boLinkStatus)
        {
            var model = new ApiLinkStatusResponseModel();

            model.SetProperties(boLinkStatus.Id, boLinkStatus.Name);

            return(model);
        }
        public virtual BOLinkStatus MapEFToBO(
            LinkStatus ef)
        {
            var bo = new BOLinkStatus();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
        public virtual LinkStatus MapBOToEF(
            BOLinkStatus bo)
        {
            LinkStatus efLinkStatus = new LinkStatus();

            efLinkStatus.SetProperties(
                bo.Id,
                bo.Name);
            return(efLinkStatus);
        }
Esempio n. 4
0
        public virtual BOLinkStatus MapModelToBO(
            int id,
            ApiLinkStatusRequestModel model
            )
        {
            BOLinkStatus boLinkStatus = new BOLinkStatus();

            boLinkStatus.SetProperties(
                id,
                model.Name);
            return(boLinkStatus);
        }