Exemplo n.º 1
0
 public RegistrationStatus(RegisterViewModel model, bool Result, StudentRegResults status, IEnumerable <string> ErrorMessage)
 {
     this.Status = status;
     this.Email  = model.Email;
     this.Result = Result;
     if (!Result)
     {
         foreach (var message in ErrorMessage)
         {
             this.ErrorMessage += string.Format("Error: {0} ", message);
         }
     }
 }
Exemplo n.º 2
0
 public SudentAddToCourseStatus(string email, bool result, StudentRegResults status, IEnumerable <string> ErrorMessage)
 {
     this.Email  = email;
     this.Result = result;
     this.Status = status;
     if (Result)
     {
         this.ErrorMessage = "No errors";
     }
     else
     {
         foreach (var message in ErrorMessage)
         {
             this.ErrorMessage += string.Format("Error: {0} ", message);
         }
     }
 }
Exemplo n.º 3
0
 public SudentAddToCourseStatus(string email, bool result, StudentRegResults status, IEnumerable <string> ErrorMessage, int UIId) : this(email, result, status, ErrorMessage)
 {
     this.UIId = UIId;
 }