// POST: api/Plan
        public IHttpActionResult Post([FromBody] List <CustomGroup> customGroupList)
        {
            CustomGroupRepository customGroupRepository = new CustomGroupRepository(Convert.ToInt32(Request.Headers.GetValues("CurrentUserID").First()));

            customGroupRepository.SaveCustomGroups(customGroupList);

            return(Json(new { count = customGroupList.Count.ToString() }));
        }
        public IHttpActionResult Get()
        {
            CustomGroupRepository customGroupRepository = new CustomGroupRepository(Convert.ToInt32(Request.Headers.GetValues("CurrentUserID").First()));

            List <CustomGroup> customGroupList = customGroupRepository.GetCustomGroups();

            return(Json(new { customGroups = customGroupList }));
        }