Write the C# code using .NET Core to create endpoints for task creation, modification and deletion. The task creation endpoint should accept task name, description, due date, user id and project id as inputs. The task modification endpoint should accept task id, task name, description, due date, user id and project id as inputs. The task deletion endpoint should accept task id as input.
Write the C# code using .NET Core to create endpoints for task creation, modification and deletion. The task creation endpoint should accept task name, description, due date, user id and project id as inputs. The task modification endpoint should accept task id, task name, description, due date, user id and project id as inputs. The task deletion endpoint should accept task id as input.