public Result <int> GetResult(MyECommerceEntities db)
        {
            Result <int> result            = new Result <int>();
            int          transactionResult = db.SaveChanges();

            if (transactionResult > 0)
            {
                result.UserMassage   = "Operation Successful.";
                result.IsSucceeded   = true;
                result.ProcessResult = transactionResult;
            }
            else
            {
                result.UserMassage   = "Operation Failed!";
                result.IsSucceeded   = false;
                result.ProcessResult = transactionResult;
            }
            return(result);
        }
        public Result <int> GetResult(MyECommerceEntities db)
        {
            Result <int> result = new Result <int>();
            int          sonuc  = db.SaveChanges();

            if (sonuc > 0)
            {
                result.UserMessage   = "Basarili";
                result.IsSuccessed   = true;
                result.ProcessResult = sonuc;
            }
            else
            {
                result.UserMessage   = "Basarisiz";
                result.IsSuccessed   = false;
                result.ProcessResult = sonuc;
            }
            return(result);
        }