public async Task <AcademicRank> Create(AcademicRank entity) { var rank = _repositoryAcademicRank.FirstOrDefault(x => x.Id == entity.Id); if (rank != null) { throw new UserFriendlyException("Academic Rank Already exist"); } else { return(await _repositoryAcademicRank.InsertAsync(entity)); } }
public void Update(AcademicRank entity) { _repositoryAcademicRank.Update(entity); }