public Result <FamilyMember> Get(int id, int clientId) { var result = new Result <FamilyMember>(); FamilyMemberService familyMemberService = new FamilyMemberService(); var lstClient = familyMemberService.Get(id, clientId); result.Value = (FamilyMember)lstClient; result.IsSuccess = true; return(result); }
public Result <IList <FamilyMember> > GetAll(int clientId) { var result = new Result <IList <FamilyMember> >(); FamilyMemberService familyMemberService = new FamilyMemberService(); var lstClient = familyMemberService.Get(clientId); result.Value = (IList <FamilyMember>)lstClient; result.IsSuccess = true; return(result); }