public string DeleteCurrentStatus(string statusID)
        {
            StatusService _statusService = new StatusService(settings);

            _statusService.DeleteStatus(statusID);
            return("Deleted!");
        }
Ejemplo n.º 2
0
        public string DeleteStatus(int StatusId)
        {
            string jsonResponse;

            try
            {
                _statusService.DeleteStatus(StatusId);
                jsonResponse = "Status deleted successfully";
            }
            catch (Exception e)
            {
                jsonResponse = $"Error deleting status: {e.Message}";
            }

            return(jsonResponse);
        }