Exemplo n.º 1
0
 public WebResponseContent Set(ResponseType responseType, string msg, bool?status)
 {
     if (status != null)
     {
         this.Status = (bool)status;
     }
     this.Code = ((int)responseType).ToString();
     if (!string.IsNullOrEmpty(msg))
     {
         Message = msg;
         return(this);
     }
     Message = responseType.Description();
     return(this);
 }