Example #1
0
        private static ServiceRegistryLock CreateFromFilter(IQueryFilter filter, Database database = null)
        {
            Database db  = database ?? Db.For <ServiceRegistryLock>();
            var      dao = new ServiceRegistryLock();

            filter.Parameters.Each(p =>
            {
                dao.Property(p.ColumnName, p.Value);
            });
            dao.Save(db);
            return(dao);
        }
Example #2
0
 public ActionResult Update(Bam.Net.CoreServices.ServiceRegistration.Data.Dao.ServiceRegistryLock dao)
 {
     try
     {
         dao.Save();
         return(Json(new { Success = true, Message = "", Dao = dao.ToJsonSafe() }));
     }
     catch (Exception ex)
     {
         return(GetErrorResult(ex));
     }
 }