Ejemplo n.º 1
0
 public Status CompanyAndUserProfile(CompanyInfo companyInfo, UserProfile staffRegistration, User user)
 {
     try
     {
         return(_userProfileRepository.AddCompanyAndUserProfile(companyInfo, staffRegistration, user));
     }
     catch (Exception ex)
     {
         ErrorManager.LogApplicationError(ex.StackTrace, ex.Source, ex.Message);
         _status.Message.FriendlyMessage  = "Process Failed! Unable to add new user record";
         _status.Message.TechnicalMessage = "Error: " + ex.Message;
         _status.Message.MessageCode      = "101";
         _status.Message.MessageId        = 1;
         return(_status);
     }
 }