コード例 #1
0
        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);
        }
コード例 #2
0
        public ActionResult Index()
        {
            var response = iFilmActorBusiness.ReadAll();

            return(View(response.Data));
        }
コード例 #3
0
        public SimpleResponse <List <FilmActorViewModel> > ReadAll()
        {
            var response = iFilmActorBusiness.ReadAll();

            return(response);
        }
コード例 #4
0
        public IHttpActionResult ReadAll()
        {
            var modelResult = iFilmActorBusiness.ReadAll();

            return(Json(modelResult));
        }