Ejemplo n.º 1
0
 public TL_USER_InsResult TL_USER_Ins(TL_USER_SearchResult data)
 {
     try
     {
         using (var db = new OOAD_EDUManagementDataContext())
         {
             return db.TL_USER_Ins(data.userName,MD5Code.GetMd5Hash(data.password), data.userFullName, data.roleID, data.email, data.address, data.phone, data.birthday == null ? null : data.birthday.Value.ToString(CommonClass.Constants.FormatDate)).FirstOrDefault();
         }
     }
     catch (Exception e)
     {
         return new TL_USER_InsResult() { USERID = "", RESULT = "-1", ERRORDESC = e.Message };
     }
 }