public List <MoveWarehouse> PostItemMaster(List <MoveWarehouse> item) { int Warehid = item[0].Warehouseid; try { //item.CompanyId = compid; if (item == null) { throw new ArgumentNullException("item"); } db.AddItemMove(item, Warehid); return(item); } catch (Exception ex) { return(null); } }