Exemple #1
0
        public IActionResult Delete(int id)
        {
            var deletedActuator = repo.Delete(id);

            if (deletedActuator.Status == RepositoryActionStatus.Deleted)
            {
                PushNotifications.DataChangeNotification(deletedActuator, "Actuator removed");
                return(NoContent());
            }
            return(NotFound());
        }
 public Task <bool> Delete(Guid id)
 {
     return(_repo.Delete(id));
 }