public Case Close(string id) { Case c = caseFactory.create(caseRepository.findByIdAsync(id).Result); c.Status = CaseStatus.Closed; c.ClosedOn = DateTime.Now; return(caseFactory.create(caseRepository.FullUpdate(c))); }
public Case Close(string id) { Case c = caseFactory.create(caseRepository.findByIdAsync(id).Result); c.Status = CaseStatus.Closed; c.ClosedOn = DateTime.Now; return(caseFactory.create(caseRepository.FullUpdate(c))); }