public JsonResult AddDoor(Door door) { try { //var door = JsonConvert.DeserializeObject<Door>(stringDoor); _doorManager.Add(door); return(Json(new { msg = "Başarılı", drm = true, data = _doorManager.Get(door) })); } catch (Exception ex) { return(Json(new { msg = ex.Message.ToString(), drm = false })); } }