Example #1
0
        public SimpleResponse <List <LanguageDto> > ReadAll()
        {
            var response = new SimpleResponse <List <LanguageDto> >();

            try
            {
                var resp = iLanguageBusiness.ReadAll();

                response.ResponseCode    = resp.ResponseCode;
                response.ResponseMessage = resp.ResponseMessage;
                response.RCode           = resp.RCode;
                response.Data            = SimpleMapper.MapList <LanguageViewModel, LanguageDto>(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 <LanguageDto>();
            return(response);
        }
Example #2
0
        public ActionResult Index()
        {
            var response = iLanguageBusiness.ReadAll();

            return(View(response.Data));
        }
Example #3
0
        public SimpleResponse <List <LanguageViewModel> > ReadAll()
        {
            var response = iLanguageBusiness.ReadAll();

            return(response);
        }
        public IHttpActionResult ReadAll()
        {
            var modelResult = iLanguageBusiness.ReadAll();

            return(Json(modelResult));
        }