public IActionResult Get() { var item = _rep.Get <Cart>(); var DTOs = Mapper.Map <IEnumerable <CartDTO> >(item); return(Ok(DTOs)); }
public IActionResult Get(int publisherId) { var items = _rep.Get <Book>().Where(x => x.PublisherId.Equals(publisherId)); var DTOs = Mapper.Map <IEnumerable <BookDTO> >(items); return(Ok(DTOs)); }
public IActionResult Get() { var items = _rep.Get <Product>(); var DTOs = Mapper.Map <IEnumerable <ProductDTO> >(items); return(Ok(DTOs)); }
public IActionResult Get() { var item = _rep.Get <SurveyQuestionDetail>(); var DTOs = Mapper.Map <IEnumerable <SurveyQuestionDetailDTO> >(item); return(Ok(DTOs)); }