예제 #1
0
        public void Delete(string id)
        {
            Int32 realId;

            if (!Int32.TryParse(id, out realId))
            {
                WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.NotFound;
            }
            else
            {
                artistDao.DeleteById(realId);
            }
        }
예제 #2
0
 public void Delete(int id)
 {
     artistDao.DeleteById(id);
 }