public Phase Get(int engagementId, int phaseId) { if (!_accessService.AllowGetPhase(User, engagementId)) { return(new Phase()); } return(phaseId > 0 ? _phaseService.Get(phaseId) : new Phase { EngagementId = engagementId }); }
public BaseResponse <IEnumerable <PhaseOutputDto> > Get([FromHeader] IDictionary <string, string> @params) { return(_phaseService.Get(@params)); }