public IResult FinishSurvey(SurveyFinishInfoDto dto) { SurveyMasters surveyMaster = surveyMasterDal.Get(x => x.Id == dto.MasterId); if (surveyMaster == null) { return(new ErrorResult(Messages.AuditMasterNotFound)); } surveyMaster.CompanyOfficialSignature = dto.ComponionSigniture; surveyMaster.AuditEndDate = dto.AuditEndDate; surveyMasterDal.Update(surveyMaster); return(new SuccessDataResult <SurveyMasters>(surveyMaster, Messages.AuditEndSuccessful)); }
public IDataResult <SurveyMasters> GetByDeviceInfo(DeviceDto dto) { return(new SuccessDataResult <SurveyMasters>(surveyMasterDal.Get(x => x.DeviceID == dto.DeviceId && x.DeviceUUID == dto.DeviceUUID))); }