Пример #1
0
        public ActionResult <WebApiMessageOnly> Delete()
        {
            _services.DeleteAndSave <User>(Guid.Parse("32feb0dd-6182-4dc0-9ad6-b147b6fb0cbb"));

            Console.WriteLine("--- update ---");
            Console.WriteLine($"isvalid - {_services.IsValid}");
            Console.WriteLine($"message - {_services.Message}");
            Console.WriteLine($"errors - {JsonSerializer.Serialize(_services.Errors)}");

            return(_services.Response());
        }
Пример #2
0
 public void Delete(int id)
 {
     service.DeleteAndSave <Member>(id);
 }
 public ActionResult <WebApiMessageOnly> Delete(int id, [FromServices] ICrudServices service)
 {
     service.DeleteAndSave <TodoItemHybrid>(id);
     return(service.Response());
 }