public async Task <MajlisMembership> Create(MajlisMembership entity) { var MajlisMembership = _repositoryMajlisMembership.FirstOrDefault(x => x.Id == entity.Id); if (MajlisMembership != null) { throw new UserFriendlyException("Already Exist"); } else { return(await _repositoryMajlisMembership.InsertAsync(entity)); } }
public void Update(MajlisMembership entity) { _repositoryMajlisMembership.Update(entity); }