示例#1
0
 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));
     }
 }
示例#2
0
 public void Update(Function function)
 {
     _functionsRepository.Update(function);
 }