public ActionResult <string> Delete(string ApiToken, int id)
 {
     if (Helper.ValidateApiToken(ApiToken))
     {
         return(JsonConvert.SerializeObject(UserBLO.Delete(id)));
     }
     else
     {
         return(JsonConvert.SerializeObject("Token inválido"));
     }
 }
Exemple #2
0
            public void ShoudlNotDelete(int id)
            {
                var result = UserBLO.Delete(id);

                Assert.AreEqual((int)ResultCode.Fail, result.Code);
            }