示例#1
0
        //[Authorize]
        public Result <IList <FeesInvoiceTransacation> > GetAll(int clientId)
        {
            var result = new Result <IList <FeesInvoiceTransacation> >();
            FeesInvoiceService feesInvoice = new FeesInvoiceService();

            result.Value     = feesInvoice.GetFeesInvoice(clientId);
            result.IsSuccess = true;
            return(result);
        }
示例#2
0
        public Result <string> GetMaxInvoiceId(string year)
        {
            var result = new Result <string>();
            FeesInvoiceService feesInvoice = new FeesInvoiceService();

            result.Value     = feesInvoice.GetMaxInvoiceId(year);
            result.IsSuccess = true;
            return(result);
        }
示例#3
0
        public Result Delete(string InvoiceId)
        {
            var result = new Result();

            try
            {
                FeesInvoiceService feesInvoiceService = new FeesInvoiceService();
                feesInvoiceService.Delete(InvoiceId);
                result.IsSuccess = true;
            }
            catch (Exception exception)
            {
                result.IsSuccess     = false;
                result.ExceptionInfo = exception;
            }
            return(result);
        }
示例#4
0
        public Result Update(FeesInvoiceTransacation feesInvoiceTransacation)
        {
            var result = new Result <int>();

            try
            {
                FeesInvoiceService feesInvoiceService = new FeesInvoiceService();
                feesInvoiceService.Update(feesInvoiceTransacation);
                result.IsSuccess = true;
            }
            catch (Exception exception)
            {
                result.IsSuccess     = false;
                result.ExceptionInfo = exception;
            }
            return(result);
        }
示例#5
0
        public Result Delete(int Id)
        {
            var result = new Result();

            try
            {
                FeesInvoiceService momService = new FeesInvoiceService();
                momService.DeleteFeesInvoiceDetails(Id);
                result.IsSuccess = true;
            }
            catch (Exception exception)
            {
                result.IsSuccess     = false;
                result.ExceptionInfo = exception;
            }
            return(result);
        }