public AppUser GetByJobId(int jobId)
 {
     if (jobId <= 0)
     {
         throw new System.NotImplementedException();
     }
     return(_appUserDal.Get(m => m.JobId == jobId));
 }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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));
 }