コード例 #1
0
 public int DeleteItem(int id, string name)
 {
     if (!itemDataAccess.HasThisId(id) || !itemDataAccess.HasThisName(name))
     {
         return(-1);
     }
     else
     {
         return(itemDataAccess.DeleteItem(id, name));
     }
 }