/// <summary> /// Gets the User specified by email /// <para>Returns ApplicationUserDTOModel</para> /// </summary> /// <param name="email">string</param> /// <returns>ApplicationUserDTOModel</returns> public ApplicationUserDTOModel FindUserByEmail(string email) { try { return(new ApplicationUserDTOModel { Item = _repository.FindUserByEmail(email), }); } catch (Exception e) { LogWarning(e.Message); return(new ApplicationUserDTOModel { ErrorMessage = e.Message, }); } }