예제 #1
0
 public ActionResult Save(Bam.Net.ServiceProxy.Secure.ApiKey[] values)
 {
     try
     {
         ApiKeyCollection saver = new ApiKeyCollection();
         saver.AddRange(values);
         saver.Save();
         return(Json(new { Success = true, Message = "", Dao = "" }));
     }
     catch (Exception ex)
     {
         return(GetErrorResult(ex));
     }
 }
예제 #2
0
 public ActionResult Save(Bam.Net.CoreServices.ApplicationRegistration.Data.Dao.ApiKey[] values)
 {
     try
     {
         ApiKeyCollection saver = new ApiKeyCollection();
         saver.AddRange(values);
         saver.Save();
         return(Json(new { Success = true, Message = "", Dao = "" }));
     }
     catch (Exception ex)
     {
         return(GetErrorResult(ex));
     }
 }