public async Task <ResponceModel> Get(int id) { try { var roomType = await roomTypeService.Get(id); return(new ResponceModel(200, "OK", roomType, null)); } catch (Exception ex) { await _logService.Add(new SystemLog() { Content = ex.Message, CreateDate = DateTime.Now, UserId = 0, EntityName = roomTypeService.GetType().Name }); return(new ResponceModel(500, "ERROR", null, new string[] { "Veri getitilirken sorun oluştu." })); } }