public bool CheckTranslatorPassword(string email, string password) { try { IUnitOfWork ouw = new UnitOfWork(); IStaffRepository rep = new StaffRepository(ouw); IStaffService service = new StaffService(rep); var data = rep.GetTranslatorByUser(email, password); if (data == null) { return(false); } } catch (Exception ex) { IErrorLogService errorLog = new ErrorLogService(); string message = ex.InnerException != null ? ex.InnerException.InnerException.Message : ex.Message; throw new Exception(ex.Message); } return(true); }