Exemple #1
0
 public static void Update(ClienteBean item)
 {
     try
     {
         ClienteController.Validate(item);
         ClienteModel.Update(item);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #2
0
        public static Int32 Insert(ClienteBean item)
        {
            Int32 id = 0;

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