Heat oil in a nonstick pan, add onion, saute til pink. Add green chili and fry. Then add capsicum and fry for few seconds. Then add spinach and fry. Add sweet corn and fry. Add salt and mix well. Reduce the flame to low and cover the pan, leave for 10 minutes.