public async Task <IDataResult <Clinic> > GetById(int clinicId) { return(new SuccessDataResult <Clinic>(await _clinicDal.Get(c => c.ClinicId == clinicId))); }
public IDataResult <Clinic> GetById(int Id) { return(new SuccessDataResult <Clinic>(_clinicDal.Get(c => c.Id == Id), Messages.ClinicListed));; }