public ActionResult Delete(Guid id) { var result = _bo.Delete(id); if (result.Success) { return(Ok()); } return(new ObjectResult(HttpStatusCode.InternalServerError)); }
public void TestDeleteCountry() { BoraNowSeeder.Seed(); var vbo = new CountryBusinessObject(); var resList = vbo.List(); var resDelete = vbo.Delete(resList.Result.First().Id); resList = vbo.List(); Assert.IsTrue(resDelete.Success && resList.Success && resList.Result.First().IsDeleted); }