public object Delete(Holiday deleted) { string msgError = ""; bool result = repository.Remove(deleted, ref msgError); object json = new { success = result, message = msgError }; return(json); }