I have this procedure
create proc Insert_New_Emp
@EMP_Name varchar(50),
@EMP_Email varchar(50),
@EMP_Role varchar (10),
@Username varchar(50),
@password varchar(50),
@EMP_Phone varchar(15),
@EMP_Department varchar(50),
@Question varchar(200)
as
begin
insert into EMP_Info (EMP_Name, EMP_Email, EMP_Role, Username, password,
EMP_Phone, EMP_Department, Question)
values (@EMP_Name, @EMP_Email, @EMP_Role, @Username, @password,
@EMP_Phone, @EMP_Department, @Question)
if (exists(select EMP_Role from EMP_Info where EMP_Role ='Admin' ))
return 'Admin'
else
return 'Employee'
end
I need to check the procedure code in Windows Form C#
When the return Admin do something and else do something