Exemplo n.º 1
0
        public SimpleResponse <List <ActorDto> > ReadAll()
        {
            var response = new SimpleResponse <List <ActorDto> >();

            try
            {
                var resp = iActorBusiness.ReadAll();

                response.ResponseCode    = resp.ResponseCode;
                response.ResponseMessage = resp.ResponseMessage;
                response.RCode           = resp.RCode;
                response.Data            = SimpleMapper.MapList <ActorViewModel, ActorDto>(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 <ActorDto>();
            return(response);
        }
Exemplo n.º 2
0
        public IActionResult Index()
        {
            var response = iActorBusiness.ReadAll();

            return(View(response.Data));
        }
Exemplo n.º 3
0
        public IHttpActionResult ReadAll()
        {
            var modelResult = iActorBusiness.ReadAll();

            return(Json(modelResult));
        }
Exemplo n.º 4
0
        public SimpleResponse <List <ActorViewModel> > ReadAll()
        {
            var response = iActorBusiness.ReadAll();

            return(response);
        }