Пример #1
0
        public IResult Add(FindexScore findexScore)
        {
            var result = CreateFindexScore(findexScore).Data;

            _findexScoreDal.Add(result);
            return(new SuccessResult(Messages.FindexScoreAdded));
        }
Пример #2
0
        public IResult Update(FindexScore findeksScore)
        {
            var result = CreateFindexScore(findeksScore).Data;

            _findexScoreDal.Update(result);
            return(new SuccessResult(Messages.FindexScoreUpdated));
        }
Пример #3
0
        public IActionResult Update(FindexScore findeksScore)
        {
            var result = _findexScoreService.Update(findeksScore);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
Пример #4
0
        private IDataResult <FindexScore> CreateFindexScore(FindexScore findex)
        {
            findex.Score = new Random().Next(0, 1900);

            return(new SuccessDataResult <FindexScore>(findex));
        }
Пример #5
0
 public IResult Delete(FindexScore findeksScore)
 {
     _findexScoreDal.Delete(findeksScore);
     return(new SuccessResult(Messages.FindexScoreDeleted));
 }
 public IResult Update(FindexScore findexScore)
 {
     _findexScoreDal.Update(findexScore);
     return(new SuccessResult(Messages.ScoreUpdated));
 }
 public IResult Add(FindexScore findexScore)
 {
     _findexScoreDal.Add(findexScore);
     return(new SuccessResult(Messages.ScoreAdded));
 }
Пример #8
0
 public IResult Update(FindexScore findexScore)
 {
     _findexScoreDal.Update(findexScore);
     return(new SuccessResult("Skor başarı ile güncellendi"));
 }
Пример #9
0
 public IResult Delete(FindexScore findexScore)
 {
     _findexScoreDal.Delete(findexScore);
     return(new SuccessResult("Findex Skoru başarı ile silindi"));
 }
Пример #10
0
 public IResult Add(FindexScore findexScore)
 {
     _findexScoreDal.Add(findexScore);
     return(new SuccessResult("Findex Skoru başarı ile eklendi"));
 }