public AppUser GetByJobId(int jobId) { if (jobId <= 0) { throw new System.NotImplementedException(); } return(_appUserDal.Get(m => m.JobId == jobId)); }
public async Task <IResult> Delete(AppUserDeleteInput deleteInput) { var user = await _appUserDal.Get(t => t.Id == deleteInput.Id); if (user == null) { return(new ErrorResult(Messages.UnSuccessfully)); } await _appUserDal.Delete(user); return(new SuccessResult(Messages.Successfully)); }
public AppUser Find(Expression <Func <AppUser, bool> > filter) { var data = _mapper.Map <AppUser>(_appUserDal.Get(filter)); return(data); }
public AppUser Get(Expression <Func <AppUser, bool> > filter) { return(_appUserDal.Get(filter)); }