public static _Proxy.WF_FabricContentsComposition MapToModelObject(ContentCompositionViewModel objectToBeMapped, int fabCategoryId, string fabCode)
        {
            var temp = new _Proxy.WF_FabricContentsComposition
            {
                ContentID = objectToBeMapped.FabContentID,
                //FabricCategoryID = fabCategoryId,
                FabricCode = fabCode,
                Percentage = float.Parse(objectToBeMapped.ContentPercentage.ToString()),
            };

            return(temp);
        }
        public static ContentCompositionViewModel MapToViewModelObject(_Proxy.WF_FabricContentsComposition objectToBeMapped)
        {
            var x = new ContentCompositionViewModel
            {
                FabContent =
                {
                    //Iserial = objectToBeMapped.tbl_lkp_Contents.Iserial,
                    //Aname = objectToBeMapped.tbl_lkp_Contents.Aname,
                    //Ename = objectToBeMapped.tbl_lkp_Contents.Ename,
                    //Code = objectToBeMapped.tbl_lkp_Contents.Code
                },
                FabContentID             = objectToBeMapped.ContentID,
                ContentCompositionSerial = objectToBeMapped.Iserial,
                ContentPercentage        = objectToBeMapped.Percentage,
            };

            return(x);
        }