Example #1
0
        public AjaxResult Get(Guid id)
        {
            var ajaxresult = new AjaxResult();

            try
            {
                using (SupplierBL supplierBL = new SupplierBL())
                {
                    ajaxresult.Data    = supplierBL.GetSupplierByIDBL(id);
                    ajaxresult.Success = true;
                }
            }
            catch (Exception ex)
            {
                ajaxresult.Success = false;
                ajaxresult.Data    = ex;
                ajaxresult.Message = Resources.ErrorGetSupplier;
            }
            return(ajaxresult);
        }