Пример #1
0
 public void Post([FromBody] TaskLine link)
 {
     if (link == null)
     {
         HttpContext.Response.StatusCode = 500;
     }
     db.Add(link);
     db.SaveChanges();
 }
Пример #2
0
        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);
        }