public async Task TrackFailedAction(string action, string result, string method, string arguments) { RepositoryBranchUpdate update = await GetRepositoryBranchUpdate(); update.Action = action; update.ErrorMessage = result; update.Method = method; update.Arguments = arguments; update.Success = false; await Context.SaveChangesAsync(); }
public async Task TrackSuccessfulAction(string action, string result) { RepositoryBranchUpdate update = await GetRepositoryBranchUpdate(); update.Action = action; update.ErrorMessage = result; update.Method = null; update.Arguments = null; update.Success = true; await Context.SaveChangesAsync(); }