Notifier.Update C# (CSharp) 메소드

Update() 개인적인 메소드

private Update ( ) : void
리턴 void
	void Update () {
	
	}
}

Usage Example

예제 #1
0
        public async Task <IActionResult> Delete(int cid, int pid, bool post = true)
        {
            var prob = Problems.SingleOrDefault(p => p.ProblemId == pid);

            if (prob == null)
            {
                return(NotFound());
            }

            await Store.DeleteAsync(prob);

            await HttpContext.AuditAsync("detached", $"{pid}");

            await Notifier.Delete(cid, prob);

            var newprobs = await Store.ListAsync(cid);

            foreach (var @new in newprobs)
            {
                if (@new.Rank >= prob.Rank)
                {
                    await Notifier.Update(cid, @new);
                }
            }

            StatusMessage = $"Contest problem {prob.ShortName} has been deleted.";
            return(RedirectToAction("Home", "Jury"));
        }
All Usage Examples Of Notifier::Update