public string CreateRequestTitle(Employee employee) { OrgServiceClient client = new OrgServiceClient(); string deptName = client.GetDepartment(this.DepartmentId).Name; string positionName = client.GetPosition(this.PositionId).Name; return(string.Format("{0} for {1} created by {2} ({3})", positionName, deptName, employee.Name, DateTime.Now.ToString())); }
// get the name of the position string GetPositionName(string id) { OrgServiceClient client = new OrgServiceClient(); Position position = client.GetPosition(id); client.Close(); return(position.Name); }
// get the name of the position string GetPositionName(string id) { OrgServiceClient client = new OrgServiceClient(); Position position = client.GetPosition(id); client.Close(); return position.Name; }
public string CreateRequestTitle(Employee employee) { OrgServiceClient client = new OrgServiceClient(); string deptName = client.GetDepartment(this.DepartmentId).Name; string positionName = client.GetPosition(this.PositionId).Name; return string.Format("{0} for {1} created by {2} ({3})", positionName, deptName, employee.Name, DateTime.Now.ToString()); }