public ResponseWrapper <object> UpdateFunction(int functionId, string functionName) { try { var function = new Functions { functionId = functionId, functionName = functionName }; functionsRepository.Update(function); functionsRepository.Save(); return(new ResponseWrapper <object>("OK", true)); } catch (Exception e) { return(new ResponseWrapper <object>(e.Message, false)); } }
public void Update(Function function) { _functionsRepository.Update(function); }