public async Task <ServiceResult <string> > GetAllPhone(PagingParameterModel pagingParameter) { return(await _phoneRepository.GetAllPhone(pagingParameter)); }
public ViewResult Index() { var model = _phoneRepository.GetAllPhone(); return(View(model)); }