Getting Exception “not all code path return a value”

前端 未结 3 981
春和景丽
春和景丽 2021-01-22 00:34

Hi I have a method which updates a MySQL table using a query. I\'m using a MS Visual Studio and phpmyadmin as the SQL client.

Method:

public static Memb         


        
3条回答
  •  伪装坚强ぢ
    2021-01-22 01:16

    Your method is not returning anything, You need to return the Member Object.

    If you do not need to return anything , just change your Method Signature like this,

    public static Void updateMember(string un, string pass, string name, string surname,string mf, string dob, string add, string phone, string email)
    

提交回复
热议问题