public HttpResponseMessage GetLeads([FromBody] int?CompanyId, [FromUri] int?Status, [FromUri] int?EmployeeId, [FromUri] DateTime?From, [FromUri] DateTime?To) { return(Request.CreateResponse(HttpStatusCode.OK, Lead.GetDetailsForLeads(CompanyId, Status, EmployeeId, From, To))); }
public HttpResponseMessage GetLeads([FromUri] int id, [FromBody] int CompanyId) { return(Request.CreateResponse(HttpStatusCode.OK, Lead.GetDetailsForLeads(CompanyId, id))); }