public IResult Add(FindexScore findexScore) { var result = CreateFindexScore(findexScore).Data; _findexScoreDal.Add(result); return(new SuccessResult(Messages.FindexScoreAdded)); }
public IResult Update(FindexScore findeksScore) { var result = CreateFindexScore(findeksScore).Data; _findexScoreDal.Update(result); return(new SuccessResult(Messages.FindexScoreUpdated)); }
public IActionResult Update(FindexScore findeksScore) { var result = _findexScoreService.Update(findeksScore); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
private IDataResult <FindexScore> CreateFindexScore(FindexScore findex) { findex.Score = new Random().Next(0, 1900); return(new SuccessDataResult <FindexScore>(findex)); }
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)); }
public IResult Update(FindexScore findexScore) { _findexScoreDal.Update(findexScore); return(new SuccessResult("Skor başarı ile güncellendi")); }
public IResult Delete(FindexScore findexScore) { _findexScoreDal.Delete(findexScore); return(new SuccessResult("Findex Skoru başarı ile silindi")); }
public IResult Add(FindexScore findexScore) { _findexScoreDal.Add(findexScore); return(new SuccessResult("Findex Skoru başarı ile eklendi")); }