예제 #1
0
        public async Task <CategoryDTO> GetById(int Id)
        {
            CategoryDTO category = new CategoryDTO();
            var         programs = _BusinessBase.GetById(Id);

            if (programs != null)
            {
                category.Id   = programs.Id;
                category.Name = programs.Name;
            }
            return(category);
        }
예제 #2
0
        public async Task <AreaDTO> GetById(int Id)
        {
            var     states = _BusinessBase.GetById(Id);
            AreaDTO state  = new AreaDTO();

            if (states != null)
            {
                state.AreaName = states.AreaName;
                state.Id       = states.Id;
            }
            return(state);
        }
예제 #3
0
파일: BlogBL.cs 프로젝트: gabod2000/grubNow
        public async Task <BlogsDTO> GetById(int Id)
        {
            var      states = _BusinessBase.GetById(Id);
            BlogsDTO state  = new BlogsDTO();

            if (states != null)
            {
                state.Id             = states.Id;
                state.Description    = states.Description;
                state.Heading        = states.Heading;
                state.ImagesUrl      = states.ImagesUrl;
                state.OtherImagesUrl = states.OtherImagesUrl;
                state.UserName       = states.UserName;
                state.UserId         = states.UserId;
            }
            return(state);
        }