INS and type 1 diabetes mellitus: In T1DM, it seems that vitamin D produces its effects through affecting the immune system, while in T2DM the ameliorating effects of vitamin D on B cell function and also increased insulin sensitivity is more prominent [41].