public void DeleteProductBrandTest() { try { var postResult = ConstantHelpers.DeleteUrlAsync(Baseurl, "SAV/productbrands/5").Result; AreEqual("Success", postResult.Message); } catch (Exception ex) { throw; } }
public async System.Threading.Tasks.Task <JsonResult> DeleteBrand(Int32?Id) { var validacion = false; try { var postResult = ConstantHelpers.DeleteUrlAsync(Baseurl, "SAV/brands/" + Id.ToString()).Result; if (postResult.Message.Equals("Success")) { validacion = true; return(Json(new { validacion })); } return(Json(new { })); } catch (Exception ex) { return(Json(new { })); } }