public ActionResult ResultCalculateOperation(string operation, double first, double second) { ICalculate <double> calc_operation = null; double res = 0; try { calc_operation = GetCalculateOperationClass(operation, first, second); res = calc_operation.ResultOperation(); var event_value = new UserEvents(calc_operation); database.InsertEventIntoDatabase(user_settings.UserIp, event_value.Operation.Operation_symbol, event_value.Operation.A_number, event_value.Operation.B_number, event_value.Operation.Result, event_value.DateTimeOperation); return(Content(res.ToString())); } catch (Exception er) { return(new HttpNotFoundResult(er.Message)); } }