// Create Class
public class AppServices
{
public int ServiceId { get; set; }
public int SInfoCode { get; set; }
public string SInfoName { get; set; }
public string SInfoNameEn { get; set; }
};
public IActionResult Dropinfo(int dropId) {
//.............................
//.............................
var _service = _context.AppServices.FromSqlRaw($"SELECT a.service_id,b.sinfo_code,b.sinfo_name,b.sinfo_name_eng FROM drops_services a INNER JOIN service_info b ON a.service_id = b.sinfo_id WHERE a.drop_id = '{dropId}'").ToList();
}