Пример #1
0
        public string AddNewStockItem(ItemsVM objItem)
        {
            para = new SqlParameter[]
            {
                new SqlParameter("@MainCategoryID", objItem.MainCategoryID),
                new SqlParameter("@SubCategoryID", objItem.SubCategoryID),
                new SqlParameter("@MeasureUnitID", objItem.MeasureUnitID),
                new SqlParameter("@DetailValues", Comman.ConvertList(objItem.DetailValues))
            };
            int    i   = obj.InsertInTo("spAddNewStockItem", para);
            string msg = string.Empty;

            if (i > 0)
            {
                msg = "Item Added Succesfullylllll";
            }
            else
            {
                msg = "ItemNotAdded";
            }
            return(msg);
        }