public JsonResult AssignConfiuredAsset(ConfiguredAssetEmployee configuredAssetEmployee)
        {
            int             result = 0;
            string          configurationGroupNameId = string.Empty;
            AssetService    assetservice             = new AssetService();
            EmployeeService employeeService          = new EmployeeService();
            int             configResult             = 0;
            int             configAssetAllocation    = 0;

            result = assetservice.ConfiguredAssetAllocation(configuredAssetEmployee);

            if (result > 0)
            {
                configurationGroupNameId = assetservice.ConfigurationGroupNameId();
            }
            if (configurationGroupNameId != string.Empty || configurationGroupNameId != null)
            {
                configResult = assetservice.CreateConfiguration(configurationGroupNameId, configuredAssetEmployee.selectedAssets);
            }
            if (configResult > 0)
            {
                for (int i = 0; i < configuredAssetEmployee.selectedAssets.Count; i++)
                {
                    configAssetAllocation = assetservice.AssetAllocation(configuredAssetEmployee.srNo, configuredAssetEmployee.selectedAssets[i]);
                }
            }
            if (configAssetAllocation > 0 && result > 0 && configResult > 0)
            {
                return(Json(new { success = true, responseText = "Configured Assets allocated successfully." }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(new { success = false, responseText = "Error while configured allocation!!" }, JsonRequestBehavior.AllowGet));
            }
        }