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