Пример #1
0
        public GetGeneralResponse <ProvinceView> GetProvince(GetRequest request)
        {
            GetGeneralResponse <ProvinceView> response = new GetGeneralResponse <ProvinceView>();

            try
            {
                Province     province     = new Province();
                ProvinceView provinceView = province.ConvertToProvinceView();
                province = _provinceRepository.FindBy(request.ID);
                if (province != null)
                {
                    provinceView = province.ConvertToProvinceView();
                }

                response.data = provinceView;
            }
            catch (Exception ex)
            {
            }
            return(response);
        }