public void Post([FromBody] TaskLine link) { if (link == null) { HttpContext.Response.StatusCode = 500; } db.Add(link); db.SaveChanges(); }
public object CreateBreakInvoke(Logic logic, BrkLevel brkLevel, BrkType brkType, string text, bool isZoom, ReferencedKey reference) { TaskLine targetTaskLine = logic.CreateBreak(brkLevel, brkType, text, isZoom); return(targetTaskLine); }