by using asp.net core with api and xamarin?
Can you make an rfid gate based attendance system with sms?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
by using asp.net core with api and xamarin?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jayraj ChhayaRank #304 · 8.2K reputationPosted Apr 17, 2024, 5:09 AM EDT
Hi Amadeus,
// ASP.NET Core API Controller for RFID Attendance System [Route("api/[controller]")] [ApiController] public class AttendanceController : ControllerBase { [HttpPost] public IActionResult PostAttendance([FromBody] string rfidTag) { // Implement attendance logic here return Ok(); } } // Xamarin Forms Code for RFID Attendance System public partial class MainPage : ContentPage { public MainPage() { InitializeComponent(); } private async void ScanRFIDButton_Clicked(object sender, EventArgs e) { // Implement RFID scanning logic here string rfidTag = "RFID_TAG_VALUE"; // Call API to mark attendance HttpClient client = new HttpClient(); var response = await client.PostAsync("https://yourapiurl.com/api/attendance", new StringContent(rfidTag)); if (response.IsSuccessStatusCode) { // Send SMS notification SendSMSNotification(); } } private void SendSMSNotification() { // Implement SMS notification logic here } }