コード例 #1
0
        public static dto.Roles ToDTO(this bll.Roles bll)
        {
            dto.Roles dto = new dto.Roles();

            dto.Id          = bll.Id;
            dto.Role        = bll.Role;
            dto.Description = bll.Description;

            return(dto);
        }
コード例 #2
0
        public static bll.Roles ToBLL(this dto.Roles dto)
        {
            bll.Roles bll = new bll.Roles();

            bll.Id          = dto.Id;
            bll.Role        = dto.Role;
            bll.Description = dto.Description;

            return(bll);
        }