public JsonResult updateTellerLimit(TblTellerlimit teller)
        {
            var operationName = RetailUnitOfWork.operationType.GetDetailed().Where(P => P.Id == teller.Operationtypeid).FirstOrDefault().Operationname;

            teller.Operationname = operationName;

            RetailUnitOfWork.tellerLimit.Update(teller);
            RetailUnitOfWork.Commit();
            return(Json(teller.Id));
        }
        public JsonResult DeleteTellerLimit(TblTellerlimit teller)
        {
            var item = RetailUnitOfWork.tellerLimit.GetById(teller.Id);

            item.Isdelete = true;

            RetailUnitOfWork.tellerLimit.Update(item);
            RetailUnitOfWork.Commit();
            return(Json(teller.Id));
        }
        public JsonResult AddTellerLimit([FromBody] TblTellerlimit teller)
        {
            TblOperationtype type = new TblOperationtype();
            var operationName     = RetailUnitOfWork.operationType.GetDetailed().Where(P => P.Id == teller.Operationtypeid).FirstOrDefault().Operationname;

            teller.Operationname = operationName;

            teller.Companyid = 1;
            teller.Branchid  = 1;

            RetailUnitOfWork.tellerLimit.Add(teller);
            RetailUnitOfWork.Commit();
            return(Json(teller.Id));
        }