public SimpleResponse <List <FilmActorDto> > ReadAll() { var response = new SimpleResponse <List <FilmActorDto> >(); try { var resp = iFilmActorBusiness.ReadAll(); response.ResponseCode = resp.ResponseCode; response.ResponseMessage = resp.ResponseMessage; response.RCode = resp.RCode; response.Data = SimpleMapper.MapList <FilmActorViewModel, FilmActorDto>(resp.Data); } catch (Exception ex) { response.ResponseCode = BusinessResponseValues.InternalError; response.ResponseMessage = "Okuma iþleminde hata oluþtu."; SimpleFileLogger.Instance.Error(ex); } response.Data = response.Data ?? new List <FilmActorDto>(); return(response); }
public ActionResult Index() { var response = iFilmActorBusiness.ReadAll(); return(View(response.Data)); }
public SimpleResponse <List <FilmActorViewModel> > ReadAll() { var response = iFilmActorBusiness.ReadAll(); return(response); }
public IHttpActionResult ReadAll() { var modelResult = iFilmActorBusiness.ReadAll(); return(Json(modelResult)); }