Thanks for your reply.
The method which you are telling me is need to write in .svc file..
like
[WebGet]
public ObjectResult<Tasks> GetTaskById(int TaskID)
{
TasksDBEntities entities = new TasksDBEntities();
return entities.GetTaskById(TaskID);
}
isn't it ? please reply so that i can proceed.