Crud operation in single Store procedure in c# : ALTER PROCEDURE dbo.bicrudlogin	
	(
	@id int,
	@username nvarchar(50),
	@password nvarchar(50),
	@type varchar(50),
	@status varchar(50)
	)	
AS
	if(@status='insert')
	Begin	
	insert into tbllogin  values(@username,@password,@type)
	End

	if(@status='select')
	Begin	
	select username,password,type from tbllogin where id=@id
	End

	if(@status='update')
	Begin	
	update tbllogin set username=@username,password=@password,type=@type  where id=@id
	End

	if(@status='delete')
	Begin	
	delete from tbllogin where id=@id
	End	

	RETURN



and 
code for accessing data using store procedure
            cmd = new SqlCommand("bicrudregistration",con);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@username",txtusername.Text);
            cmd.Parameters.AddWithValue("@password",txtpassword.Text);
            cmd.Parameters.AddWithValue("@status","find");
            dr=cmd.ExecuteReader();               

if this is wrong way, then tell me how to do it.
rather than writing separate store procedure for every operation. 