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); }
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); }
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); }