public ActionResult Update([FromBody] DepositDetails deposit)
 {
     try
     {
         DepositBL.Update(deposit);
     }
     catch (Exception e)
     {
         return(BadRequest(e.ToString()));
     }
     return(Ok());
 }
 public ActionResult AddDeposit([FromBody] DepositDTO deposit)
 {
     try
     {
         DepositBL.AddDeposit(deposit);
     }
     catch (Exception e)
     {
         return(BadRequest(e.ToString()));
     }
     return(Ok());
 }
        public ActionResult GetByUserId([FromRoute] int id)
        {
            List <DepositDetails> deposits = new List <DepositDetails>();

            try
            {
                deposits = DepositBL.GetByUserId(id);
            }
            catch (Exception e)
            {
                return(BadRequest(e.ToString()));
            }
            return(Ok(deposits));
        }
        public ActionResult GetById([FromRoute] int id)
        {
            DepositDetails deposit = new DepositDetails();

            try
            {
                deposit = DepositBL.GetById(id);
            }
            catch (Exception e)
            {
                return(BadRequest(e.ToString()));
            }
            return(Ok(deposit));
        }
        public ActionResult GetList()
        {
            List <DepositDetails> depositDetails = new List <DepositDetails>();

            try
            {
                depositDetails = DepositBL.GetList();
            }
            catch (Exception e)
            {
                return(BadRequest(e.ToString()));
            }
            return(Ok(depositDetails
                      ));
        }