public object AddFavorite(long taskId)
        {
            logger.Log(LogLevel.Debug, $"TaskController.AddFavorite({taskId})"); //object to json

            try
            {
                var result = TaskManager.AddFavorite(taskId, User.Identity.GetUserId <long>());

                if (result)
                {
                    return(new HttpStatusCodeResult(200));
                }
                return(new HttpStatusCodeResult(400));
            }
            catch (Exception ex)
            {
                logger.Log(LogLevel.Error, $"TaskController.AddFavorite({taskId}) - {ex}"); //object to json
                //изменить http status code
                return(Json(new Response(100, ex.Message), JsonRequestBehavior.AllowGet));
            }
        }