public IHttpActionResult GetAuditEmp(string DepId, string empId) { if (string.IsNullOrEmpty(DepId) || string.IsNullOrEmpty(empId)) { return(null); } List <Employee> list = bll.GetAuditEmp(DepId, empId).ToList(); return(Json <List <Employee> >(list, Configuration.Formatters.JsonFormatter.SerializerSettings, Encoding.UTF8)); }