Ejemplo n.º 1
0
        public static DAL.App.DTO.ProductService MapFromBLL(BLL.App.DTO.ProductService productService)
        {
            var res = productService == null ? null : new DAL.App.DTO.ProductService()
            {
                Id                 = productService.Id,
                Description        = productService.Description,
                WorkObjectId       = productService.WorkObjectId,
                WorkObject         = WorkObjectMapper.MapFromBLL(productService.WorkObject),
                ProductForClientId = productService.ProductForClientId,
                ProductForClient   = ProductForClientMapper.MapFromBLL(productService.ProductForClient)
            };

            return(res);
        }
Ejemplo n.º 2
0
        public static DAL.App.DTO.AppUserOnObject MapFromBLL(BLL.App.DTO.AppUserOnObject appUserOnObject)
        {
            var res = appUserOnObject == null ? null : new DAL.App.DTO.AppUserOnObject
            {
                Id           = appUserOnObject.Id,
                AppUserId    = appUserOnObject.AppUserId,
                AppUser      = AppUserMapper.MapFromBLL(appUserOnObject.AppUser),
                WorkObjectId = appUserOnObject.WorkObjectId,
                WorkObject   = WorkObjectMapper.MapFromBLL(appUserOnObject.WorkObject),
                From         = appUserOnObject.From,
                Until        = appUserOnObject.Until
            };

            return(res);
        }