public IHttpActionResult PostCULGroup(CULGroupAndCULItems cULGroup)
        {
            if (cULGroup == null)
            {
                return(BadRequest("CUL object is not present the request body"));
            }
            try
            {
                cULGroup.CreatedDate = DateTime.Now;
                var newCULGroupId = cULsService.InsertCULGroup(cULGroup.AutoMapObject <CULGroupAndCULItems, CULGroup>());

                var culsIds = cULGroup.CULItemsIds;
                foreach (var culId in culsIds)
                {
                    cULsService.InsertCULGroupCULItem(new CULGroupCULs()
                    {
                        CreatedDate = DateTime.Now,
                        CULGroupId  = newCULGroupId,
                        CULItemId   = culId,
                        IsActive    = true
                    });
                }

                var groups = cULsService.GetCULGroups();
                var html   = Helpers.RenderPartial("~/Views/Shared/Partial/CULs/CULsGroupsList.cshtml", groups);
                return(Ok(html));
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }
        //CULs Groups
        public ActionResult CULsGroups()
        {
            ViewData["contractsManagement"] = "in";
            ViewData["culGroups"]           = "active";

            var groups = cULsService.GetCULGroups();

            return(View(groups));
        }