public virtual ApiFileTypeResponseModel MapBOToModel(
            BOFileType boFileType)
        {
            var model = new ApiFileTypeResponseModel();

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

            return(model);
        }
示例#2
0
        public virtual BOFileType MapEFToBO(
            FileType ef)
        {
            var bo = new BOFileType();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
示例#3
0
        public virtual FileType MapBOToEF(
            BOFileType bo)
        {
            FileType efFileType = new FileType();

            efFileType.SetProperties(
                bo.Id,
                bo.Name);
            return(efFileType);
        }
        public virtual BOFileType MapModelToBO(
            int id,
            ApiFileTypeRequestModel model
            )
        {
            BOFileType boFileType = new BOFileType();

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