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