public IHttpActionResult Get(int id) { if (id == 0) { return(null); } ProjectBAL obj = new ProjectBAL(); return(Ok(obj.GetparenttaskbyId(id))); }