コード例 #1
0
 public string Edit(DBConnectionString.Organization organization, string token)
 {
     try
     {
         if (ModelState.IsValid)
         {
             organization.ModifiedBy   = _userStatistics.UserId;
             organization.ModifiedDate = DateTime.Now;
             if (organization.Update() > 0)
             {
                 SaveFiles(token, this.GetType().Name, organization.OrganizationId);
                 return(Convert.ToString(true));
             }
             return(Convert.ToString(false));
         }
         return(Convert.ToString(false));
     }
     catch (Exception ex)
     {
         return(ex.Message.ToString());
     }
 }