I am working in MVC5 with Entity Framework through db approach. I use Mysql as database. I create a procedure and when Call Procedure in Mysql it work as my
i solve this problem by myself. I make changed in store procedure and action method.
I add one more parameter in my procedure as OUTPUT and store return value in this variable.
OUT Flag int
SET Flag=0;
SELECT Flag;
Then make change in action method.
String format = "yyyy-MM-dd hh:mm:ss";
System.Data.Entity.Core.Objects.ObjectParameter flag = new System.Data.Entity.Core.Objects.ObjectParameter("flag", typeof(int));
var status = db.checkSeasonAvailability(hotelSeasonId,seasonId, hotelId, startDate.ToString(format), endDate.ToString(format), flag);