示例#1
0
 public static void Update(GrupoBean item)
 {
     try
     {
         GrupoController.Validate(item);
         GrupoModel.Update(item);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#2
0
        public static Int32 Insert(GrupoBean item)
        {
            Int32 id = 0;

            try
            {
                GrupoController.Validate(item);
                id = GrupoModel.Insert(item);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(id);
        }